<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditUserstoryTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="usyedmessagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditUserstoryLabel_productbacklog}" for="productbacklog" />
                    <h:selectOneMenu id="productbacklog" value="#{userstoryController.selected.productbacklog}" title="#{bundle.EditUserstoryTitle_productbacklog}" >
                        <f:selectItems value="#{productbacklogController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditUserstoryLabel_userstoryid}" for="userstoryid" />
                    <h:inputText id="userstoryid" value="#{userstoryController.selected.userstoryid}" title="#{bundle.EditUserstoryTitle_userstoryid}" required="true" requiredMessage="#{bundle.EditUserstoryRequiredMessage_userstoryid}"/>
                    <h:outputLabel value="#{bundle.EditUserstoryLabel_storybezeichnung}" for="storybezeichnung" />
                    <h:inputText id="storybezeichnung" value="#{userstoryController.selected.storybezeichnung}" title="#{bundle.EditUserstoryTitle_storybezeichnung}" required="true" requiredMessage="#{bundle.EditUserstoryRequiredMessage_storybezeichnung}"/>
                    <h:outputLabel value="#{bundle.EditUserstoryLabel_storybeschreibung}" for="storybeschreibung" />
                    <h:inputText id="storybeschreibung" value="#{userstoryController.selected.storybeschreibung}" title="#{bundle.EditUserstoryTitle_storybeschreibung}" />
                    <h:outputLabel value="#{bundle.EditUserstoryLabel_prioritaet}" for="prioritaet" />
                    <h:inputText id="prioritaet" value="#{userstoryController.selected.prioritaet}" title="#{bundle.EditUserstoryTitle_prioritaet}" required="true" requiredMessage="#{bundle.EditUserstoryRequiredMessage_prioritaet}"/>
                </h:panelGrid>
                <h:commandLink action="#{userstoryController.update}" value="#{bundle.EditUserstorySaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditUserstoryViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{userstoryController.prepareList}" value="#{bundle.EditUserstoryShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditUserstoryIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
